namespace AF.Models
{
    /// <summary>
    /// 导出数据模型
    /// </summary>
    public class ExportData
    {
        public string AppName { get; set; } = "易帐";
        
        public string Version { get; set; } = "2.3";
        
        public DateTime ExportDate { get; set; }
        
        public List<Category> Categories { get; set; } = new List<Category>();
        
        public List<Project> Projects { get; set; } = new List<Project>();
        
        public List<Transaction> Transactions { get; set; } = new List<Transaction>();
        
        public ExportStatistics Statistics { get; set; } = new ExportStatistics();
    }
    
    /// <summary>
    /// 导出统计数据
    /// </summary>
    public class ExportStatistics
    {
        public int TotalTransactions { get; set; }
        
        public int TotalProjects { get; set; }
        
        public decimal TotalIncome { get; set; }
        
        public decimal TotalExpense { get; set; }
        
        public decimal TotalBalance { get; set; }
        
        public DateTime? EarliestDate { get; set; }
        
        public DateTime? LatestDate { get; set; }
    }
}

